Z-buffer algorithms